<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "emotion".
 *
 * @property int $id
 * @property int $time
 * @property string $addr
 * @property string $feel
 * @property string $members
 * @property string $thingDetail
 * @property string $emotionNeed
 */
class Emotion extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'emotion';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['time', 'addr', 'feel', 'members', 'thingDetail', 'emotionNeed'], 'required'],
            [['time'], 'integer'],
            [['thingDetail'], 'string'],
            [['addr'], 'string', 'max' => 96],
            [['feel'], 'string', 'max' => 48],
            [['members'], 'string', 'max' => 192],
            [['emotionNeed'], 'string', 'max' => 1024],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'time' => 'Time',
            'addr' => 'Addr',
            'feel' => 'Feel',
            'members' => 'Members',
            'thingDetail' => 'Thing Detail',
            'emotionNeed' => 'Emotion Need',
        ];
    }
}
